package cn.tedu.project.oa.sys.department.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
@Data
public class AddDepartPara {

    @ApiModelProperty(value = "部门ID")
    private Long id;

    @NotBlank(message = "部门名称不能为空")
    @Size(min = 2, max = 10, message = "部门名称长度必须在2-10之间")
    @ApiModelProperty(value = "部门名称")
    private String departmentName;

    @ApiModelProperty(value = "父级部门ID")
    private Long parentId;

    @Size(max = 200, message = "部门描述长度必须在200之内")
    @ApiModelProperty(value = "部门描述")
    private String description;
}
